.PHONY: all clean clean_obj

CCFLAGS		:= -gstabs -I../ -nostdlib -nostdinc -fno-builtin

LIBGCC		:= $(shell ${CC} -print-libgcc-file-name)

HEADERS		:= string.h ioif.h

OBJFILES	:= string.o ioif.o parse.o

all: ${OBJFILES}

%.o: %.c ${HEADERS}
	${CC} ${CCFLAGS} $< -c -o$@

clean_obj:
	-${RM} ${OBJFILES}

clean: clean_obj
